<input type="hidden" class="tpl-form-input" id="dict-id" name="dict.id" value="#(dict.id??)">
<input type="hidden" class="tpl-form-input" id="dict-pid" name="dict.pid" value="#(dict.pid??)">
<input type="hidden" class="tpl-form-input" id="dict-type" name="dict.type" value="#(dict.type??)">
#if(dict.type == 1)
    <div class="am-form-group">
        <label for="dict-name" class="am-u-sm-3 am-form-label">字典类型名 <span class="tpl-form-line-small-title">name</span></label>
        <div class="am-u-sm-9">
            <input type="text" class="tpl-form-input" id="dict-name" name="dict.name" value="#(dict.name??)" placeholder="请输入字典类型名">
            <small>#(nameMsg)</small>
        </div>
    </div>

    <div class="am-form-group">
        <label class="am-u-sm-3 am-form-label">类型 <span class="tpl-form-line-small-title">type</span></label>
        <div class="am-u-sm-9">
            字典类型
        </div>
    </div>

    <div class="am-form-group">
        <label for="dict-mark" class="am-u-sm-3 am-form-label">标识 <span class="tpl-form-line-small-title">mark</span></label>
        <div class="am-u-sm-9">
            <input type="text" class="tpl-form-input" id="dict-mark" name="dict.mark" value="#(dict.mark??)" placeholder="请输入标识">
            <small></small>
        </div>
    </div>
#else
    #if(dict.pname)
    <div class="am-form-group">
        <label for="dict-pname" class="am-u-sm-3 am-form-label">所属字典类型 <span class="tpl-form-line-small-title">belong to</span></label>
        <div class="am-u-sm-9">
            #(dict.pname)
        </div>
    </div>
    #end

    <div class="am-form-group">
        <label for="dict-name" class="am-u-sm-3 am-form-label">字典名 <span class="tpl-form-line-small-title">name</span></label>
        <div class="am-u-sm-9">
            <input type="text" class="tpl-form-input" id="dict-name" name="dict.name" value="#(dict.name??)" placeholder="请输入字典名">
            <small>#(nameMsg)</small>
        </div>
    </div>

    <div class="am-form-group">
        <label class="am-u-sm-3 am-form-label">类型 <span class="tpl-form-line-small-title">type</span></label>
        <div class="am-u-sm-9">
            字典值
        </div>
    </div>

    <div class="am-form-group">
        <label for="dict-value" class="am-u-sm-3 am-form-label">字典值 <span class="tpl-form-line-small-title">value</span></label>
        <div class="am-u-sm-9">
            <input type="text" class="tpl-form-input" id="dict-value" name="dict.value" value="#(dict.value??)" placeholder="请输入字典值">
            <small>#(nameMsg)</small>
        </div>
    </div>

#end

<div class="am-form-group">
    <label for="dict-sort" class="am-u-sm-3 am-form-label">排序 <span class="tpl-form-line-small-title">sort</span></label>
    <div class="am-u-sm-9">
        <input type="number" class="tpl-form-input" id="dict-sort" name="dict.sort" value="#(dict.sort??)" placeholder="请输入排序">
    </div>
</div>

<div class="am-form-group">
    <div class="am-u-sm-9 am-u-sm-push-3">
        <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
    </div>
</div>